﻿using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace Ecobee.Net
{
	public class FunctionList : ApiObject
	{
		private Selection _selection = null;
		private Function[] _functions = null;

		public FunctionList()
		{
		}

		public FunctionList(Selection selection, Function[] functions)
		{
			this.Selection = selection;
			this.Functions = functions;
		}

		/// <summary>
		/// Specifies the thermostats to perform the function(s) against.
		/// </summary>
		[JsonProperty(PropertyName = "selection", Order = 2)]
		public Selection Selection
		{
			get
			{
				return _selection;
			}
			set
			{
				this.SetProperty(ref _selection, value);
			}
		}

		/// <summary>
		/// 
		/// </summary>
		[JsonProperty(PropertyName = "functions", Order = 1)]
		public Function[] Functions
		{
			get
			{
				return _functions;
			}
			set
			{
				this.SetProperty(ref _functions, value);
			}
		}
	}
}
